package chapter3;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;

public class CopyOfLabels
{
	public static void main(String[] args) {
				
		Display display = new Display();
		Shell shell = new Shell(display);
		

		Label label_h_o = new Label(shell, SWT.CENTER);
		label_h_o.setText("sombra fuera");
		
		Label label_h_i = new Label(shell, SWT.CENTER);
		label_h_i.setText("sombra dentro");
		
		Label label_h_eo = new Label(shell, SWT.CENTER);
		label_h_eo.setText("etched out");
		
		Label label_h_ei = new Label(shell, SWT.CENTER);
		label_h_ei.setText("etched in");

		Label separator_h_o = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL | SWT.SHADOW_OUT | SWT.CENTER);
		Label separator_h_i = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL | SWT.SHADOW_IN | SWT.CENTER);
		Label separator_h_eo = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL | SWT.SHADOW_ETCHED_OUT | SWT.CENTER);
		Label separator_h_ei = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL | SWT.SHADOW_ETCHED_IN | SWT.CENTER);
		
		shell.setSize(140, 200);
		
		label_h_o.setBounds(10, 10, 110, 15);
		separator_h_o.setBounds(10, 30, 110, 15);
		
		label_h_i.setBounds(10, 50, 110, 15);
		separator_h_i.setBounds(10, 70, 110, 15);
		
		label_h_eo.setBounds(10, 90, 110, 15);
		separator_h_eo.setBounds(10, 110, 110, 15);
		
		label_h_ei.setBounds(10, 130, 110, 15);
		separator_h_ei.setBounds(10, 150, 110, 15);
		

		shell.setVisible(true);

		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
		display.dispose();
	}
}